package com.newsee.remote.shassets.controller;


import com.newsee.remote.common.dto.assets.AssetsDTO;
import com.newsee.remote.common.vo.assets.AssetsVO;
import com.newsee.remote.shassets.service.IShAssetsService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  资产折旧接口前端控制器
 * </p>
 *
 * @author liangzhichen
 * @since 2019-11-11
 */
@Slf4j
@RestController
@RequestMapping("/sap/assets")
public class ShAssetsController {

    @Autowired
    private IShAssetsService iShAssetsService;

    @ApiOperation(value = "接收资产折旧信息接口")
    @PostMapping
    public AssetsVO acceptSapAssets(@RequestBody AssetsDTO dto) {
        log.info("接收资产折旧信息接口信息：" + dto.toString());
        return iShAssetsService.acceptSapAssets(dto);
    }

}
